﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

namespace Janus.Cores.Security
{
    public static class MD5Encrypt
    {
        public static string Encrypt(string inputString)
        {
            MD5 md5 = new MD5CryptoServiceProvider();
            var data = Encoding.Unicode.GetBytes(inputString);
            var encs = md5.ComputeHash(data);
            return BitConverter.ToString(encs).Replace("-", "");
        }
    }
}
